

CREATE TABLE LogisticsPlanNote
 (
 Id int NOT NULL PRIMARY KEY IDENTITY,
 PlanId int FOREIGN KEY REFERENCES LogisticsPlan(Id),
 LocationId int,
 Note varchar(max),
 ValidForCommission bit,
 DisplayToCourier bit,
 CreatedOnUtc datetime
 );